cmake_minimum_required(VERSION 3.10)
project(first_c)

# 设置编译选项
set(CMAKE_CXX_STANDARD 17)

# 包含头文件目录
include_directories(${PROJECT_SOURCE_DIR}/include)

# 添加动态库目标
add_library(mylib SHARED src/mylib.cpp)

# 添加测试程序目标
add_executable(test_main src/test_main.cpp)

# 链接动态库到测试程序
target_link_libraries(test_main mylib)

